package com.lxl.commons.contants;

/**
 * @author 北上寻海
 */
public class Contants {
    /**
     * 用户信息验证通过与否
     */
    public static final String RETURN_OBJECT_CODE_SUCCESS="1";
    public static final String RETURN_OBJECT_CODE_FAIL="0";

    /**
     * 保存当前user的key
     */
    public static final String SESSION_USER = "sessionUser";

    /**
     * 选了十天免登录的值
     */
    public static final String TS_REM_PED_VALUE = "true";

    /**
     * 封装好用户对象的集合的名字
     */
    public static final String USER_LIST = "userList";


    /**
     * 不同权限数值
     * 馆长：1
     * 普通员工：2
     * 书目管理员：3
     * 总管理员：4
     */
    public static final String CURATOR_PERMISSIONS = "1";
    public static final String COMMON_STAFF_PERMISSIONS = "2";
    public static final String CATEGORY_STAFF_PERMISSIONS = "3";
    public static final String ADMINISTRATOR = "4";


    /**
     * 七天免登录的值 cookie的名字
     */
    public static final String LOGIN_IN_FREE = "free";
    public static final String USERNAME_COOKIE = "usernameCookie";
    public static final String PASSWORD_COOKIE = "passwordCookie";

    /**
     * CRUD失败的message
     */
    public static final  String RETURN_OBJECT_MESSAGE_FAIL = "系统繁忙，请稍后重试";

    /**
     * 普通员工与书目管理员
     */
    public static final String COMMON_STAFF = "普通员工";
    public static final String CATEGORY_STAFF = "书目管理员";

    /**
     * 验证码需要的数字和大小写字母
     */
    public static final String VERIFY_CODE="1234567890QWERTYUIOPLKJHGFDSAZXCVBNMqwertyuioplkjhgfddsazxcvbnm";



}
